package observer;

public class Person implements Observer {
    @Override
    public void update(Observer observer, Object obj) {
        System.out.println(observer.getClass().getName() +":" + obj);
        this.doSomething();
    }

    private void doSomething(){
        System.out.println("普通观察者");
    }
}
